import request from '@/utils/request'

export function listDeliver(query) {
  return request({
    url: '/deliver/list',
    method: 'get',
    params: query
  })
}

export function createDeliver(data) {
  return request({
    url: '/deliver/create',
    method: 'post',
    data
  })
}

export function readminDeliver(data) {
  return request({
    url: '/deliver/readmin',
    method: 'get',
    data
  })
}

export function updateDeliver(data) {
  return request({
    url: '/deliver/update',
    method: 'post',
    data
  })
}

export function deleteDeliver(data) {
  return request({
    url: '/deliver/delete',
    method: 'post',
    data
  })
}
